<%--
  Created by IntelliJ IDEA.
  User: Chf
  Date: 2021/3/30
  Time: 8:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" language="java" %>
<html>
  <head>
    <title>servlet练习</title>
  </head>
  <body>
  <form action="LoginServlet" method="post">
    用户名：<input type="text" name="userName"><br />
    密  码：<input type="password" name="userPwd"><br />
    <input type="submit" value="登录">
  </form>
<%--  转发--%>
<%--  <jsp:forward page="main.jsp"></jsp:forward>--%>
<%--  重定向--%>
<%--  <c:redirect url="main.jsp"></c:redirect>--%>
  </body>
</html>
